<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>空标签界面</title>

	<style ></style>
	<link rel="stylesheet" href="jquery.datetimepicker.css">

</head>
<body>
<input class="addTime1" type="text" readonly="true">
<input class="addTime2" type="text" readonly="true">
<input class="addTime2" type="button" onclick="getData();">
<script src="http://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
<script src="jquery.datetimepicker.js"></script>
<script type="text/javascript">
	$('.addTime1').datetimepicker({
		lang:"ch",
		timepicker:false,
		format:"Y-m-d"
	});
    $('.addTime2').datetimepicker({
        lang:"ch",
        timepicker:true,//可以选择具体的时间
        format:"Y/m/d H:i" //日期格式
    });

    function getData() {
        let time1 = $('.addTime1').val();
        let time2 = $('.addTime2').val();
        alert(time1);
        alert(time2);
    }

</script>
</body>
</html>
